var months=["January","February","March","April","May","June","July","August","September","October","November","December"];
var date= new Date();
var geocities='http://www.geocities.com/oliver_86/';
var angelfire='http://www.angelfire.com/realm3/oliver_86/';
var dreambook='http://www.books.dreambook.com/oliver_86/';
var aloofhost='http://www.aloofhosting.com/oliver_86/';
var sitesled ='http://oliver_86.sitesled.com/';
var n ='new';
var u ='up';

var navbar=[
[1 ,0,0,aloofhost,[0,0,0],""            ,""             ,"index.html"       ,"Home Page"          ,u,"9/27/2004"],
[9 ,0,0,sitesled ,[0,0,0],"blog/"       ,""             ,"index.html"       ,"My Blog"            ,""],
[9 ,1,0,aloofhost,[0,0,1],""            ,""             ,"#"                ,"Recent Posts"       ,""],
[9 ,1,1,aloofhost,[0,0,1],""            ,""             ,""                 ,"<BloggerArchives><a href='<$BlogArchiveURL$>'><$BlogArchiveName$></a></BloggerArchives>",""],
[2 ,0,0,aloofhost,[1,0,0],""            ,""             ,"aboutme.html"     ,"About Me"           ,""],
//[2 ,1,0,aloofhost,[0,0,0],"aboutme/"    ,""             ,"rants.html"       ,"My Rants"           ,""],
[2 ,2,0,aloofhost,[1,0,0],"aboutme/"    ,""             ,"stories.html"     ,"Long Stories"       ,""],
[2 ,2,1,aloofhost,[0,0,0],"aboutme/"    ,"stories/"     ,"calculus.html"    ,"Age in Calculus"    ,""],
[2 ,2,2,aloofhost,[0,0,0],"aboutme/"    ,"stories/"     ,"sunset.html"      ,"Picture Experience" ,""],
[3 ,0,0,aloofhost,[0,0,0],""            ,""             ,"activities.html"  ,"My Activities"      ,u,"10/8/2004"],
[12,0,0,aloofhost,[1,0,0],""            ,""             ,"hschool.html"     ,"High School"        ,""],
[12,1,0,aloofhost,[0,0,0],"hschool/"    ,""             ,"knowledge.html"   ,"Knowledge Bowl"     ,""],
[12,2,0,aloofhost,[0,0,0],"hschool/"    ,""             ,"school.html"      ,"School"             ,""],
[12,3,0,aloofhost,[1,0,0],"hschool/"    ,""             ,"youthgov.html"    ,"Youth & Government" ,""],
[12,3,1,aloofhost,[0,0,0],"hschool/"    ,"youthgov/"    ,"rayj.html"        ,"Ray J"              ,""],
[11,0,0,aloofhost,[1,0,0],""            ,""             ,"humor.html"       ,"Humor"              ,u,"10/31/2004"],
[11,1,0,aloofhost,[1,0,0],"humor/"      ,""             ,"stupid.html"      ,"Stupidest Ever Said",u,"10/31/2004"],
[11,1,1,aloofhost,[0,1,1],"humor/"      ,"stupid/"      ,""                 ,"Joke"               ,""],
[11,2,0,aloofhost,[0,0,0],"humor/"      ,""             ,"bumper.html"      ,"Bumper Stickers"    ,n,"10/31/2004"],
[4 ,0,0,aloofhost,[1,0,0],""            ,""             ,"programs.html"    ,"Calc. Programs"     ,""],
[4 ,1,0,aloofhost,[0,0,0],"programs/"   ,""             ,"howto.html"       ,"How To Download"    ,""],
//[4 ,2,0,aloofhost,[0,0,0],"programs/"   ,""             ,"xxxxxxx.html"     ,"(Mine)"             ,""], //not yet built
[4 ,2,0,aloofhost,[0,0,0],"programs/"   ,""             ,"pascal.html"      ,"Pascal's Triangle"  ,""],
[4 ,3,0,aloofhost,[0,0,0],"programs/"   ,""             ,"quadratic.html"   ,"Quadratic Formula"  ,""],
[4 ,4,0,aloofhost,[0,0,0],"programs/"   ,""             ,"roman.html"       ,"Roman Numerals"     ,""],
[4 ,5,0,aloofhost,[0,0,0],"programs/"   ,""             ,"rectpol.html"     ,"Rect/Polar Converter",""],
[10,0,0,aloofhost,[1,0,0],""            ,""             ,"javascript.html"  ,"Cool JavaScripts"   ,""],
[10,1,0,aloofhost,[0,0,0],"javascript/" ,""             ,"browser.html"     ,"Your Browser"       ,""],
[5 ,0,0,aloofhost,[1,0,0],""            ,""             ,"galleries.html"   ,"Photo Galleries"    ,""],
[5 ,1,0,aloofhost,[0,0,0],"galleries/"  ,""             ,"youthgov.html?"   ,"Youth & Gov. 2004"  ,""],
[5 ,2,0,aloofhost,[0,0,0],"galleries/"  ,""             ,"govball.html?"    ,"Y&amp;G Governor's Ball"    ,""],
[5 ,4,0,aloofhost,[0,0,0],"galleries/"  ,""             ,"prom.html?"       ,"SHS Prom 2004"      ,""],
[5 ,8,0,aloofhost,[0,0,0],"galleries/"  ,""             ,"gradparty.html?"  ,"SHS Grad. Party 2004",""],
[5 ,3,0,aloofhost,[0,0,0],"galleries/"  ,""             ,"nature.html?"     ,"Nature"             ,""],
[5 ,5,0,aloofhost,[0,0,0],"galleries/"  ,""             ,"art.html"         ,"My Art Projects"    ,""],
[5 ,6,0,aloofhost,[0,0,0],"galleries/"  ,""             ,"grammies.html?"   ,"Grammie&rsquo;s Birthday" ,""],
[5 ,7,0,aloofhost,[0,0,0],"galleries/"  ,""             ,"projects.html?"   ,"Home Projects"      ,""],
//[8 ,0,0,dreambook,[0,0,0],""            ,""             ,"expectations.html","Great Expectations" ,""], //not in use anymore, need to update ad code before can re-place
//[8 ,1,0,dreambook,[0,0,0],""            ,""             ,"expectations.sign.html","Add an Entry"       ,""],
//[8 ,1,1,dreambook,[0,1,1],""            ,""             ,""                 ,"Figure Entered!"    ,""],
[6 ,0,0,aloofhost,[0,0,0],""            ,""             ,"links.html"       ,"Links"              ,""],
[6 ,1,0,aloofhost,[0,0,0],""            ,""             ,"#local"           ,"Local"              ,""],
[6 ,1,1,aloofhost,[0,0,0],""            ,""             ,"#RL"              ,"RL Friends"         ,""],
[6 ,1,3,aloofhost,[0,0,0],""            ,               ,"#online"           ,"Online Friends"     ,""],
[6 ,1,2,aloofhost,[0,0,0],""            ,""             ,"#places"          ,"Local Places"       ,""],
[6 ,2,0,aloofhost,[0,0,0],""            ,""             ,"#global"          ,"Global"             ,""],
[6 ,2,1,aloofhost,[0,0,0],""            ,""             ,"#college"         ,"College/Scholarship",""],
[6 ,2,2,aloofhost,[0,0,0],""            ,""             ,"#howto"           ,"How To's"           ,""],
[6 ,2,3,aloofhost,[0,0,0],""            ,""             ,"#pcprogram"       ,"PC Programs"        ,""],
[6 ,2,4,aloofhost,[0,0,0],""            ,""             ,"#freeweb"         ,"Free Web Hosting"   ,""],
[6 ,2,5,aloofhost,[0,0,0],""            ,""             ,"#misc"            ,"Miscellaneous"      ,""],
[6 ,5,0,aloofhost,[0,0,0],"links/"      ,               ,"recommend.html"   ,"Forum Recommendations",""],
[7 ,0,0,aloofhost,[0,0,0],""            ,""             ,"contact.html"     ,"Contact Me"         ,""],
[7 ,1,0,aloofhost,[0,1,0],"contact/"    ,""             ,"thanks.html"      ,"Thank You"          ,""]

//0,1,2,   3     ,  4  ,   5          ,    6          ,     7             ,        8
];
/*
0-2 = cat
3   = URL var
4   = boolean control array
  0   = has children
  1   = hidden page
  2   = not a link
5   = containing folder
6   = subfolder
7   = filename
8   = Description
9   = type, 'end new date'
*/

google_ad_client = "pub-1582809335145772";
google_alternate_color = "87cefa";
google_ad_width = 180;
google_ad_height = 150;
google_ad_format = "180x150_as";
google_ad_channel ="";
google_color_border = "87CEFA";
google_color_bg = "ECF8FF";
google_color_link = "0000CC";
google_color_url = "008000";
google_color_text = "6F6F6F";


function fullURL(i)
{document.write(navbar[i][3] + navbar[i][5] + navbar[i][6] + navbar[i][7]);}

function newItem(type, expiryDate)
{
exp = new Date(expiryDate);
cur = new Date();
if (cur.getTime() < exp.getTime())
	{if (type=='new')
	document.write("<IMG SRC='http://www.sitesled.com/members/oliver_86/images/new.gif' WIDTH=31 HEIGHT=12 BORDER=0 ALT='New!'>" );
	else if (type=='up')
	document.write("<IMG SRC='http://www.sitesled.com/members/oliver_86/images/update.gif' WIDTH= 37 HEIGHT=12 BORDER=0 ALT='Recently Updated!'>");
	}
}


function makenav()
{
	
//	document.write("<TABLE class=tbar width='100%' border=0 cellpadding=0 cellspacing=0>");
	document.write("<TR><TD align=center>" + months[(date.getMonth())] + " " + (date.getDate()) + ", " + (date.getFullYear()) +"</TD></TR>");
	for(var i=0; i<navbar.length; i++)
	{	//	(is second level, and matches first				or				is third level, and matched previous two levels				or		is toplevel rank					or						is in links while in links		or		is on blog while on blog)	and		(is not hidden	and			not self)
		if(((navbar[i][1]!==0 && navbar[i][0]==cat[0] && navbar[i][2]==0) || (navbar[i][2]!==0 && navbar[i][1]==cat[1] && navbar[i][0]==cat[0])||(navbar[i][2]==0 && navbar[i][1]==0 && navbar[i][0]!==0) || (navbar[i][0]==6 && cat[0]==6) || (navbar[i][0]==9 && cat[0]==9)) && !(navbar[i][4][1]==1 && (navbar[i][0]!==cat[0] || navbar[i][1]!==cat[1] || navbar[i][2]!==cat[2])))
		{

			document.write("<TR class=");
			if (cat[0]==navbar[i][0] && navbar[i][1]==cat[1] && navbar[i][2]==cat[2])
				{document.write("tself");}
			else
				{document.write("tbar ");}
			document.write("><TD colspan=" + (2-(navbar[i][4][0])) +">");
				if (navbar[i][2]!==0 && cat[0]==navbar[i][0] && navbar[i][1]==cat[1] && navbar[i][2]==cat[2])
					{var barclass='self3';}
				else if(navbar[i][2]!==0)
					{var barclass='bar3 ';}
				else if (navbar[i][1]!=0 && navbar[i][1]==cat[1] && navbar[i][0]==cat[0]&& navbar[i][2]==cat[2])
					{var barclass='self2';}
				else if (navbar[i][1]!=0)
					{var barclass='bar2 ';}
				else if (navbar[i][0]==cat[0] && navbar[i][2]==cat[2] && navbar[i][1]==cat[1])
					{var barclass='rself';}
				else if (navbar[i][0]!=0)
					{var barclass='bar  ';}
				else {var barclass='self';}
			document.write("<DIV class='");
//			document.write(barclass);
			document.write("'>");
			if (navbar[i][4][2]==0)
			{
				document.write("<A class='");

				document.write(barclass);
				document.write("' HREF='");
				//vv  working absolute linking
//				document.write( navbar[i][3] + navbar[i][5] + navbar[i][6] +navbar[i][7]);





//  Work in progress relative linking
if(navbar[i][0]==8 || cat[0]==8 )
//on dreambook
{fullURL(i)}



else if(navbar[i][0]==9 || cat[0]==9 )
//on blog
{fullURL(i)}
else if(cat[0]==0)
//is a zero
{fullURL(i)}


else if(navbar[i][0]==cat[0] && navbar[i][1]==cat[1] && navbar[i][2]==cat[2]) 
//is self
{document.write(navbar[i][7]);}
else if(navbar[i][0]!==cat[0] && navbar[i][1]==0 && cat[1]==0) 
//is toplevel, linking to toplevel
{document.write(navbar[i][7]);}
else if(navbar[i][0]==cat[0] && cat[1]==0 && navbar[i][1]!==0) 
//is toplevel, linking to it's sublevels
{document.write(navbar[i][5]+navbar[i][7]);}
else if(navbar[i][1]==0 && cat[1]!==0 && cat[2]==0) 
//is second level, linking to first
{document.write("../"+navbar[i][7]);}
else if(navbar[i][0]==cat[0] && navbar[i][2]==0 && cat[2]==0) 
// is second level, linking to siblings
{document.write(navbar[i][7]);}
else if(navbar[i][0]==cat[0] && navbar[i][1]==cat[1] && navbar[i][2]!==0 && cat[2]==0) 
//is second level, linking to children
{document.write(navbar[i][6]+navbar[i][7]);}
else if(cat[2]!==0 && navbar[i][2]==0 && cat[0]==navbar[i][0] && navbar[i][1]!==0) 
//is third level, linking to second level
{document.write("../" + navbar[i][7]);}
else if(cat[2]!==0 && navbar[i][1]==0 && navbar[i][2]==0) 
//is third level, linking to top level
{document.write("../../" + navbar[i][7]);}
else if(cat[2]!==0 && navbar[i][2]!==0)
//is third level, linking to sibling
{document.write(navbar[i][7]);}
else
//is anything else
{fullURL(i)}


				document.write("'>"+navbar[i][8]);
				newItem(navbar[i][9], navbar[i][10]);
				document.write("</A>");
			}
			if (navbar[i][4][2]==1)
{document.write("<DIV class='" + barclass +"'>" + navbar[i][8] + "</DIV>");}
			document.write("</TD>");
			if ((navbar[i][4][0]==1) && !(cat[0]==navbar[i][0] && navbar[i][1]==cat[1] && navbar[i][2]==cat[2]))
			{
				document.write("<TD align=left><FONT color=red><B>+</B></FONT></TD>");
			}
			document.write("</TR>");
		}
	}
//	document.write("</TABLE>");
}
